package net.oschina.app.viewpagerfragment.move;

import net.oschina.app.adapter.move.MoveNewListAdapter;
import net.oschina.app.base.BaseListAdapter;
import net.oschina.app.base.BaseListFragment;
import net.oschina.app.bean2.MoveNewBean;
import net.oschina.app.protocol.AccessProtocol;
import net.oschina.app.protocol.move.MoveNewProtocol;

import java.util.List;

/**
 * Created by Vashon on 2017/1/12.
 */


public class MoveNewFragment extends BaseListFragment {
    protected List parseData(Object body) {
        return ((MoveNewBean) body).getTweets();
    }

    @Override
    protected AccessProtocol getProtocol() {
        return new MoveNewProtocol();
    }

    @Override
    protected BaseListAdapter getAdapter() {
        return new MoveNewListAdapter();
    }
}